﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_employee_list.aspx.cs" Inherits="Web.admin_employee_list" %>
<%@ Register Assembly="Control" Namespace="Com.Control" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>员工列表</title>
       <link href="css/Page.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table style="border: 1px solid #9abddd;" border="0" cellpadding="0"
            cellspacing="0" width="98%">
            <tr>
                <td class="TitleBar" colspan="3" align="center">
                    员工管理
                </td>
            </tr>
            <tr>
                <td class="Pager"  style="padding-right: 30px; text-align:left; ">
                 &nbsp;&nbsp;&nbsp;&nbsp;
                    姓名：<asp:TextBox runat="server" ID="txt_name"></asp:TextBox>
                    
                    部门：  <asp:DropDownList ID="ddldepartType" runat="server"   >
                    </asp:DropDownList>
                    
                    <asp:Button runat="server" ID="btn_ok" Text="查询" OnClick="btn_ok_Click" />
                </td>
                 <td class="Pager" colspan="2"  style="padding-right: 10px; text-align:right; ">
                   
                    <asp:Button runat="server" ID="btn_add" Text="添加员工" onclick="btn_add_Click"  />
                </td>
            </tr>
            <tr>
                <td class="MenuItem" align="center">
                    员工名称
                </td>
                   <td class="MenuItem" align="center">
                    部门名称
                </td>
                <td class="MenuItemRight" align="center">
                    操作
                </td>
            </tr>
            <asp:Repeater ID="repeater" runat="server" onitemcommand="repeater_ItemCommand">
                <ItemTemplate>
                    <tr style='background-color:<%#(Container.ItemIndex%2==0)?"write":"#f5f5f5;"%>'>
                        <td class="RecordItem" style="text-align:center; ">
                            &nbsp;<span style="color: #000;"><%#Eval("Name")%></b></span>
                        </td>
                         <td class="RecordItem" style="text-align:center; ">
                            &nbsp;<span style="color: #000;"><%#Eval("Name1")%></b></span>
                        </td>
                        <td class="RecordItemRight"  style="text-align:center;" >
                            <a class="Link" href="admin_employee_update.aspx?id=<%#Eval("id")%>">修改</a>
                             <asp:LinkButton runat="server"  ID="lkb"  CommandArgument='<%#Eval("id")%>' CommandName="del" Text="删除" OnClientClick= "return   confirm( '您确认删除该记录吗? '); " ></asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr>
                <td class="Pager" colspan="3" style="padding-right: 10px; text-align:center;">
                    <cc1:MyPageBar ID="MyPageBar1" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
